Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented May 21, 2025

Include class metadata and JIT information in code built for development and/or test usage. All non-optimized builds will now contain this metadata (optimization.scripts is false). The Angular TestBed APIs require additional metadata for the Angular aspects of the application such as Components, Modules, Pipes, etc.
TestBed may also leverage JIT capabilities during testing (e.g., overrideComponent). To support all these TestBed usage scenarios both the underlying setClassMetadata and setNgModuleScope class augmentation functions are now emitted when test metadata inclusion is enabled.

@clydin clydin added the target: patch This PR is targeted for the next patch release label May 21, 2025
Include class metadata and JIT information in code built for development and/or test usage.
All non-optimized builds will now contain this metadata (`optimization.scripts` is false).
The Angular TestBed APIs require additional metadata for the Angular aspects of the application
such as Components, Modules, Pipes, etc.
TestBed may also leverage JIT capabilities during testing (e.g., overrideComponent).
To support all these TestBed usage scenarios both the underlying `setClassMetadata`
and `setNgModuleScope` class augmentation functions are now emitted when
test metadata inclusion is enabled.
@clydin clydin force-pushed the unit-test/aot-testbed-metadata branch from 86d1df5 to f052a48 Compare May 21, 2025 19:30
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label May 21, 2025
@clydin clydin requested a review from alan-agius4 May 21, 2025 19:43
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 21, 2025
@clydin clydin merged commit 578525e into angular:main May 21, 2025
32 checks passed
@clydin
Copy link
Member Author

clydin commented May 21, 2025

The changes were merged into the following branches: main, 19.2.x, 20.0.x

@clydin clydin deleted the unit-test/aot-testbed-metadata branch May 21, 2025 20:36
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants